from django.urls import path, include
from rest_framework.routers import DefaultRouter

from chat_api.views import *

router = DefaultRouter()

router.register('friend', FriendView, basename='friend')
urlpatterns = [
    path('login/', MyTokenObtainPairView.as_view()),
    path('register/', RegisterView.as_view()),
    path('userinfo/', UserInfoView.as_view()),
]

urlpatterns += router.urls
